/**
 * A class for creating instances of portal.layer.renderer.Renderer
 */
Ext.define('okcapital.layer.RendererFactory', {

    extend : 'portal.layer.renderer.RendererFactory',

    cityStore : null,
    
    constructor : function(cfg) {
    	this.cityStore = cfg.cityStore;
    	this.map = cfg.map;
    	this.callParent(arguments);
    },
    
    /**
     * See parent class for defn
     */
    buildFromKnownLayer : function(knownLayer) {
        return Ext.create('okcapital.layer.renderer.CityRenderer', {
        	cityStore : this.cityStore,
        	map : this.map
        });
    },

    /**
     * See parent class for defn
     */
    buildFromCswRecord : function(cswRecord) {
    	return Ext.create('okcapital.layer.renderer.CityRenderer', {
        	cityStore : this.cityStore,
        	map : this.map
        });
    }
});